
$(function(){

	/*关于切换推文和心理量表的js*/
	$('.mls')[0].onclick = function(){
		$(this).removeClass('showright');
		$($('.mls')[1]).addClass('showleft');
		document.getElementById("showContent1").style.display = "block";
		document.getElementById("showContent2").style.display = "none";
	}
	$('.mls')[1].onclick = function(){
		$(this).removeClass('showleft');
		$($('.mls')[0]).addClass('showright');
		document.getElementById("showContent1").style.display = "none";
		document.getElementById("showContent2").style.display = "block";
	}

	/*jQuery(".txtMarquee-top").slide({mainCell:".bd ul",autoPlay:true,effect:"topMarquee",vis:5,interTime:50,trigger:"click"});*/

	/*关于缩略图的js*/
	var simg = $('#mainRight li img');
	
	simg.mouseover(function(){
		for (var i=0;i<$('.slp').length;i++) {
			$('.slp')[i].className='slp'
		}
		
		$(this).addClass('current');
		var thisSrc = $(this).attr('src');
		/* alert(this); */
		$('#mainRightPicture img').attr('src',thisSrc);
	});

	/*获取年份*/
	var year = $("#year")
	year.text(new Date().getFullYear())
	
});

function  backTitle() {
    self.location='../jsp/title.jsp';
}